#新建mapping
#索引名称/类型名称/_mapping
#curl -XDELETE 10.16.239.15:9200/tms_search
curl -X PUT "10.16.239.15:9200/tms_search?pretty"
curl -XPOST 'http://10.16.239.15:9200/tms_search/shipping/_mapping?pretty ' -d '
{
      "shipping" : {
        "properties" : {
          "1" : {
            "type" : "string"
          },
          "address_id" : {
            "type" : "long"
          },
          "address_telephone" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "delay_type" : {
            "type" : "byte"
          },
          "doc" : {
            "properties" : {
              "shipping_status" : {
                "type" : "long"
              }
            }
          },
          "level3" : {
            "type" : "long"
          },
          "level4" : {
            "type" : "long"
          },
          "level5" : {
            "type" : "long"
          },
          "level6" : {
            "type" : "long"
          },
          "level7" : {
            "type" : "long"
          },
          "market_name" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "money" : {
            "type" : "float"
          },
          "order_id" : {
            "type" : "string"
          },
          "provider_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "shipping_actived_at" : {
            "type" : "long"
          },
          "shipping_arrived_at" : {
            "type" : "long"
          },
          "shipping_created_at" : {
            "type" : "long"
          },
          "shipping_order_id" : {
            "type" : "string"
          },
          "shipping_receipt_status" : {
            "type" : "byte"
          },
          "shipping_shipped_at" : {
            "type" : "long"
          },
          "shipping_status" : {
            "type" : "byte"
          },
          "storage_type_id" : {
            "type" : "byte"
          },
          "warehouse_id" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "zone_id" : {
            "type" : "long"
          }
        }
      }
}'
